/*************************************************************************************
 *
 *  Revolution Engine
 *  Copyright (C) 2009 Felipe Apablaza
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 ************************************************************************************/


//---------------------------------------------------------
//
//  File:	ICondVar.hpp
//  Desc:	Condition variable interface definition
//
//---------------------------------------------------------


#ifndef __REVENG_ICONDVAR_HPP__
#define __REVENG_ICONDVAR_HPP__

#include <RevEng/Config.h>
#include <RevEng/IObject.hpp>
#include <typeinfo>

#define REVENG_CONDVAR	0x0000A000

namespace RevEng
{
	class IObject;
	class IMutex;

	class __REVENG_EXPORT__ ICondVar : public IObject
	{
	public:
		virtual ~ICondVar() = 0;

		virtual void Wait( IMutex* Mut ) = 0;
		virtual void Signal() = 0;
		virtual void Broadcast() = 0;

		virtual Enum GetClassId() const;
	};


	inline ICondVar::~ICondVar()
	{
	}


	inline Enum ICondVar::GetClassId() const
	{
		return REVENG_CONDVAR;
	}
}
#endif //__REVENG_ICONDVAR_HPP__
